package edu.njfu.homeork.model
class Student(val stuNo:String,
              val stuName:String,
              val classes:String,
              val gender:String,
              val department:String,
              val tel:String,
              val dormNo:String,
              var photoPath:String){
    override fun toString(): String {
        return "Student(stuNo='$stuNo', stuName='$stuName', classes='$classes', gender='$gender', department='$department', tel='$tel', dormNo='$dormNo', photoPath='$photoPath')"
    }
    fun setPhotoPath(boy:String,girl:String ){
        if(gender=="男"){
            photoPath=boy
        }else{
            photoPath=girl
        }
    }
}